package javaDemo07;


import java.io.File;
import java.util.Scanner;

public class Path {
    public static void main(String[] args){//递归查看文件中所有文件的路径
        Scanner sc = new Scanner(System.in);
        File stu = new File(sc.nextLine());
        fil(stu);


    }
    public static void fil(File a){
        File [] s = a.listFiles();
        for(int i = 0;i < s.length;i++){
            System.out.println(s[i]);
            if(s[i].isDirectory()){
                fil(s[i]);
            }else{
                System.out.println(s[i].getAbsolutePath());
            }
        }

    }
}
